#include "QSFMLCanvas.h"
#include <Qt/qapplication.h>
#include <Qt/qmainwindow.h>
#include "Game/GameWindow.h"
#include "ResourceManagement/ResourceManager.h"
#include "ResourceManagement/ImageResource.h"
#include "MathUtils.h"


/// Entry point of application
int main(int argc, char **argv)
{
    QApplication App(argc, argv);

    // Create the main frame
    QMainWindow* mainWindow = new QMainWindow();
    mainWindow->resize(800, 600);

    // Create a SFML view inside the main frame
    kling::GameWindow* gameWindow = new kling::GameWindow(mainWindow, QPoint(20, 20), QSize(800, 600));
    mainWindow->setCentralWidget(gameWindow);


    App.setActiveWindow(mainWindow);
    mainWindow->show();

    return App.exec();
}
